<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core"> 
      

	<ui:composition template="/template_padrao.xhtml">
				
			<ui:define name="content">
			<h2>Acesso ao sistema</h2>
				<div align="center">
				<h:form>
					<br />						
					<p:fieldset styleClass="fieldsetPadrao">
						<table align="center">
							<tr>
								<td>
									Usuário						
								</td>
								<td>
									<p:inputText value="#{loginBean.login}" 
												required="true" 
												id="login" 
												label="login"/>
								</td>
							</tr>	
							<tr>
								<td>
									Senha
								</td>
								<td>
									<p:inputText type="password"
												 value="#{loginBean.senha}" 
												 styleClass="input"  
												 required="true" 
												 id="senha" 
												 label="senha"/>
								</td>
							</tr>
							<tr>
								<td colspan="1" align="center">
									<p:commandButton action="#{loginBean.loggar()}" value="Entrar" ajax="false"/> 
								</td>
							</tr>			
						</table>		
					</p:fieldset>
				</h:form>
				</div>
			</ui:define>				
	</ui:composition>

</html>